package com.firstgroup.dms.mapper;

import com.firstgroup.dms.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
	User login(@Param("userName") String userName, @Param("userPwd") String userPwd);

	User getUserById(@Param("userId") Integer userId);

	User getUserByName(@Param("userName") String userName);

	int updatePwd(@Param("userId") Integer userId, @Param("newPassword") String newPassword);

	/**
	 * 插入新用户
	 */
	int insert(User user);
}
